Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Utility Functions /


JMJNIObjectToJRIRef

Converts a JNI-based jobject to a JRI-based jref.

jref JMJNIObjectToJRIRef (
                     JMSessionRef session, 
                     JNIEnv* env, 
                     jobject jniObject);
session
The current session.
env
The current JNIEnv data structure.
jniObject
The jObject to convert.
function result
A pointer to the jref object.
DISCUSSION
If you want to use jobject object references with the Java Runtime Interface (JRI), you must convert them to jref references using JMJNIObjectToJRIRef. Note that you must have a pointer to the current JNIEnv data structure before calling this function.

SEE ALSO
The JMGetCurrentEnv function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997